package com.tech.platform.entity;

import com.swak.annotation.ColumnStrategy;
import com.swak.annotation.Table;
import com.swak.persistence.Model;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 描述
 * 
 * @author Auto Generator
 * @date 2021-08-21
 */
@Getter
@Setter
@Accessors(chain = true)
@Table(value="PLATFORM_TENANT_ACCOUNT", strategy=ColumnStrategy.Full)
public class TenantAccount extends Model<TenantAccount, String> {
	
	public static final String Id = "ID";
	public static final String Type = "TYPE";
	public static final String Password = "PASSWORD";
	public static final String AppId = "APP_ID";
	public static final String TenantId = "TENANT_ID";
	public static final String TenantName = "TENANT_NAME";
	public static final String CreateDate = "CREATE_DATE";
	public static final String UpdateDate = "UPDATE_DATE";
	public static final String DelFlag = "DEL_FLAG";
	
	private Byte type;
	private String password;
	private String appId;
	private Long tenantId;
	private String tenantName;
	
	@Override
	public String prePersist() {
		return this.initDates();
	}
	
	public static TenantAccount of() {
	    return new TenantAccount();
	}
}
